﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;

namespace Site3AI.Controllers
{
    public class WeiXinSvcController : Controller
    {
        const string WEIXINTOKEN="site3aitokenforweixin";
        Models.SiteDbEntities _db = null;
        Models.SiteDbEntities DB
        {
            get {
                return _db ?? (_db = new Models.SiteDbEntities());
        } }

        public ActionResult EchoLogs() {
            return View(DB.WeiXinEchoLogs.AsEnumerable());
        }
        public ActionResult Messages() {
            return View(DB.WeiXinRawMessages.AsEnumerable());
        }
        protected override void Dispose(bool disposing)
        {
            if (null != _db) _db.Dispose();
            base.Dispose(disposing);
        }
        
    }
}
